package com.lx.video.web;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lx.bilibili.entity.User;
import com.lx.bilibili.entity.Video;
import com.lx.bilibili.entity.VideoEx;
import com.lx.video.dao.VideoExMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("search")
public class SearchController {


    @Autowired
    VideoExMapper videoExMapper;

    @RequestMapping("searchByText")
    public List<VideoEx> searchByText(String searchText){
        return videoExMapper.searchByText(searchText);
    }


}
